// pages/youhui/youhui-detail/youhui-detail.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    getResource: []
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    var that = this;
    wx.request({
      url: 'https://jiaoyu.mogochina.com/public/index.php/api/get_article?ident=discount',
      success: function (res) {
        that.setData({
          getResource: res.data.data
        })
      }
    })
  },
  jumpTo() {
    wx.reLaunch({
      url: '/pages/homepage/index'
    })
  }
})